Before starting this module, let's revisit a basic question. How is an application developed? Suppose three
developers, Jim, Sam, and Tom are each writing a method to get outputs
from a database. Jim writes a method
getStudentMarks that fetches all the marks of
students from the database. Sam uses the output of the getStudentMarks
method to calculate the total marks of
all the students by writing a method
calculateTotalMarks. Finally, Tom uses the output of the
calculateTotalMarks method to calculate the grades of all
the students and produce a report by writing the
calculateGrade method. Now, try to answer
these questions. Do you think the code is
written in a modular manner? If Jim makes changes
in his code, do you think it can affect
Sam's and Tom's code? If Sam changes the logic to
calculate the total marks, will Tom also have to change
the logic for grading? If the logic needs
to be changed, should the testing be redone for all the modules of
the application, or only the part
that Sam changed? Now, suppose the requirements change after deploying
the application. There is a new requirement where the total marks required for all students taking an exam
is reduced from 100-80. Now, Sam must calculate total marks in his method
for 80 instead of 100. Will Tom also have to change the grading
logic of his method? How can the application
get redeployed? Will the entire application
be stopped and redeployed? Tom wishes to store the data
as it is in the database. Will he be able to do that if the application uses a
relational database? How will the marks in
a subject be stored? If the database for the
application changes from MySQL to MongoDB, will the code be changed by all developers while performing
database operations? Moving on, let's talk about a very commonly
used application. Do you think this
e-commerce application is created as one
large application? Are all functionalities
deployed as one large application
to the web server? If there is an ongoing sale or some new features
are to be added, how can the changes be
launched on the application? Do you need to stop
the application, add changes and then
redeploy the application? Is this an efficient way? Imagine you are developing a ride-sharing application
that helps commuters book cabs at anytime
of the day or night by accessing
their live location. If you add a new feature
to the application, what will happen to the live
location sharing feature? Will the feature go down at
the time of redeployment? Will this impact the business? In this course, you'll learn to explain monolithic
applications, define microservices, explore the microservices
architecture and develop microservices
using NodeJS.